app.controller('payController' ,function($scope,$controller,$location,payService){
	$controller("commonController",{$scope,$scope});

	$scope.entity={};
	//获取成功后的参数
	$scope.getSuccessAttribute=function(){
		$scope.entity.money=$location.search()['money'];
		$scope.entity.id=$location.search()['id'];
		$scope.entity.trade_no=$location.search()['trade_no'];
	}
	$scope.status=["商品下架或库存不存","订单超时"];
	//获取失败后的参数
	$scope.getFailAttribute=function(){
		$scope.error=$location.search()['error'];

	}

});